const promise1 : Promise <any> = new Promise <any> ((resolve : any, reject : any) : number => {
        return setTimeout (() : any => {
                return resolve (100);
            }, 1000);
    });
const promise2 : Promise <any> = new Promise <any> ((resolve : any, reject : any) : number => {
        return setTimeout (reject, 1000);
    });
Promise.allSettled ([promise1, promise2]).then ((data : any) : any => {
        return console.log (data);
    });
